package com.yx.changdao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yx.changdao.common.entity.Article;
import com.yx.changdao.common.mapper.ArticleMapper;
import com.yx.changdao.service.ArticleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: <br/>
 * 文章
 * <p>
 * <br/>
 * @Auther: walter
 * @create 2020/04/10 14:48
 */
@Service
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> implements ArticleService {

    @Override
    public List<Article> selectList(QueryWrapper<Article> queryWrapper) {
      return   baseMapper.selectArticle(queryWrapper);
    }

    @Override
    public IPage<Article> pageNex(IPage<Article> page, QueryWrapper<Article> queryWrapper) {

        return baseMapper.pageNex(page, queryWrapper);
    }
}
